# mac下idea、webstorm提示command not found
打开终端
# 第一步:创建.bash_profile文件,~表示在~目录下,.表示隐藏文件
touch ~/.bash_profile
1
# 第二步:打开.bash_profile文件
open -t ~/.bash_profile
1
# 第三步:这时候会弹出一个空白的文本编辑框,在文本编辑框里面第一行编辑:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
1
command + s保存文件。
# 第四步:保存.bash_profile文件
source ~/.bash_profile
1